const obj = {
    name: '蜗牛',
    age: 19,
    gender: '男'
}


// 把对象里的值转换成数组


Object.prototype.my_values = function(obj) {
    let keys = []
    for(let key in obj) {
       obj.hasOwnProperty(key) && keys.push(obj[key])
    }
    return keys
}

console.log(Object.my_values(obj));